using System;
using NovaCore.Interop;

namespace NovaCore {
	public class NovaCoreException : Exception {
		private NvtlErrorCode _errorCode;
		public NvtlErrorCode ErrorCode {
			get { return _errorCode; }
		}

		public NovaCoreException(string message, NvtlErrorCode errorCode) : this(message, errorCode, null) {}

		public NovaCoreException(string message, NvtlErrorCode errorCode, Exception innerException) : base(message, innerException) {
			_errorCode = errorCode;
		}
	}
}